package com.hzsai.mappersa;

import com.hzsai.dto.UserDTO;
import com.hzsai.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * hzsai 2019/8/12
 * usage:
 **/
@Mapper
public interface UserMapper {

    Map getUserById(long id);

    void insertUser(UserDTO user);

    List<User> getPageUser(@Param("id") long id, @Param("size") long size);

    User getUserByNameAndId(@Param("id_d") long id, @Param("username_n") String name);

    List<User> findUsersByIds(@Param("ids") List<Integer> ids);
}
